#include <stdio.h>
//练习3:使用do-while循环计算1+2+3+4+...+100:
int main()
{
    int i = 100;
    int temp = 0;
    do
    {
        temp += i;
        printf("%d", i);
        i--;
    } while (i >= 1);
    printf("\n%d", temp);
}